<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .test{
      width: 800px;
      height: 500px;
      background-color: pink;

    }
    @media screen and (min-device-width: 100px) and (max-device-width: 200px) {
      .test{
        background-color: red;
      }
    }
    @media screen and (min-device-width: 201px) and (max-device-width: 300px) {
      .test{
        background-color: green;
      }
    }
    @media screen and (min-device-width: 301px) and (max-device-width: 500px) {
      .test{
        background-color: blue;
      }
    }

  </style>
</head>
<body>
  <div class="test">

  </div>
</body>
</html>
